package engine.network.hostSide.enums;

public enum RoleRequest {
	SPECTATOR("HINB_SPECT"), PLAYER("HINB_PLY"), WRONG_REQ("error ...");
	private String _label;
	
	private RoleRequest(String str) {
		_label = str;
	}
	public String label(){
		return _label;
	}
	
	public static RoleRequest factory(String s){
		RoleRequest role = WRONG_REQ;
		if(s.equals(SPECTATOR._label)){
			role = SPECTATOR;
		}else if (s.equals(PLAYER._label)){
			role = PLAYER;
		}
		return role;
	}
}
